package org.stream.answerduel.vo.Message;

import com.alibaba.fastjson.JSON;
import lombok.Data;

/**
 * 功能描述：存储好友申请消息的实体类
 *
 * @Auther: 苏建誉
 * @Date: 2019/7/11 22:48
 */
@Data
public class FriendsApplyMessage extends Message{
    /**
     * 申请人的id
     */
    private String userId;
    /**
     * 申请人的昵称
     */
    private String nickName;

    public FriendsApplyMessage(){

    }
    public FriendsApplyMessage(Long userId,String nickName){
        super(Type.FiendsApply);
        this.userId=userId.toString();
        this.nickName=nickName;
    }
    @Override
    public String toString(){
        return JSON.toJSONString(this);
    }
}
